package elearning.controller.admin.regist;

import java.util.ArrayList;
import java.util.List;
import java.util.logging.Logger;

import org.slim3.controller.Controller;
import org.slim3.controller.Navigation;

import elearning.model.Option;

public class AddQuestionController extends Controller {

	@SuppressWarnings("unused")
	private static final Logger logger = Logger
			.getLogger(AddQuestionController.class.getName());

	@Override
	public Navigation run() {
		List<Option> optionArray = new ArrayList<Option>();
		for (int i = 0; i < 6; i++) {
			optionArray.add(new Option());
		}
		requestScope("optionArray", optionArray);
		return forward("addQuestion.jsp");
	}
}
